import 'package:amplatzer/routers/router.dart';
import 'package:flutter/material.dart';
import 'routers/router.dart';
import 'services/ScreenAdapter.dart';

void main() {
  WidgetsFlutterBinding.ensureInitialized();
  runApp(MyApp());
}

class MyApp extends StatefulWidget {
  MyApp({Key? key}) : super(key: key);

  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return ScreenAdapter.init(
      Size(750, 1334),
      () => MaterialApp(
        debugShowCheckedModeBanner: false,
        initialRoute: "/",
        onGenerateRoute: onGenerateRoute,
      ),
    );
  }
}
